﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using ZFGK.IO;

namespace OSS.Earth.UI.Forms
{
    public partial class AboutUsForm : DevExpress.XtraEditors.XtraForm
    {
        public AboutUsForm()
        {
            InitializeComponent();
        }

        private void AboutUsForm_Load(object sender, EventArgs e)
        {
            var iniPath = Path.Combine(Application.StartupPath, "Version.ini");
            var iniFile = new IniFile(iniPath, "VersionInfo");

            labelVersion.Text = string.Format("当前版本{0},最后编译日期为{1}.", iniFile.GetValueOfKey("CurrentVersion"), iniFile.GetValueOfKey("ReleaseData"));
        }
    }
}